package com.example;

import android.util.Log;
import android.view.View;

/**
 * Created by jc on 17-8-14.
 */

public class Presenter {

    private static final String TAG = "DataBinding";

    public void onSaveClick(Task task) {
        Log.d(TAG, "onClick to run " + task);
        task.run();
    }

    public void onLongClick(View view, Task task) {
        Log.d(TAG, "onLongClick to run " + task);
        task.run();
    }

    public void onSaveClick(View view, Task task) {
        Log.d(TAG, "onClick to " + view + " to run " + task);
        task.run();
    }

    public void onCompletedChanged(Task task, boolean completed){
        Log.d(TAG, "oonCompletedChanged , completed: " + completed);
        task.run();
    }
}
